#include <bits/stdc++.h>

using namespace std;
using ll = long long;
const int MAXN = 1e6 + 10;
const int MOD = 998244353;

int main() {
#ifdef LOCAL
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
#endif
    double x, y;
    cin >> x >> y;
    double z = sqrt(x*x*1.0+y*y*1.0);

    cout << x/z << ' ' << y/z << endl;
    return 0;
}